n =int(input("请输入一个三位数"))
a = n%10
b = n//10%10
c = n//100
if a**3+b**3+c**3==n:
    print(n,"是水仙花数")
else:
    print(n,"不是水仙花数")